<template>
	<view class="container all">
		<view class="search">
			<uni-search-bar class="searchbar" @confirm="search" @input="input" v-model="searchValue" placeholder="搜索"
				cancelButton="none"></uni-search-bar>
		</view>
		<view class="bill" v-for="(item, index) in shop" :key="index">
			<view class="bills">
				<view class="billtop">
					<view class="personaldata">
						<view class="headline">{{item.userName}}</view>
						<view class="personal">
							<view>联系人：{{item.contacts}}</view>
							<view>联系电话：{{item.userPhone}}</view>
							<view>详细地址：{{item.userAddress}}</view>
							<view>设备ID：{{item.deviceId}}</view>
						</view>
					</view>
				</view>
				<view class="box">
					<view class="vipnums">
						<view class="num">
							{{item.storeVipNums}}
						</view>
						<view class="xian">
						</view>
						<view class="vips">
							会员总数
						</view>
					</view>
				</view>
			</view>
			<view v-if="storepackage[index].length == 0" class="no-data">
				暂无数据
			</view>
			<view v-else class="shoppage">
				<view class="shoppagedata" v-for="(packageItem, packageIndex) in storepackage[index]"
					:key="packageIndex">
					<view class="shoppage1">
						{{packageIndex}}套餐
					</view>
					<view class="shoppage1 color_s">
						本月购买人数:
						<view class="shoppage2">
							{{packageItem}}
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		shopmsg
	} from "@/common/mixins/shopmsg/index.js";
	export default {
		mixins: [shopmsg],
	}
</script>




<style scoped lang='scss'>
	@import url('../../../common/sass/all/all.scss');
	
	.search {
		width: 715rpx;
		height: 73rpx;
		margin-bottom: 23rpx;
	}

	.bill {
		width: 678rpx;
		height: 398rpx;
		background-color: #ffffff;
		border-radius: 25rpx;
		margin-top: 15rpx;
		display: flex;
		flex-direction: column;
		align-items: center;

		.bills {
			display: flex;
			flex-direction: row;
		}

		.billtop {
			width: 379rpx;
			display: flex;
			flex-direction: row;
			height: 230rpx;

			.headline {
				margin-top: 36rpx;
				margin-left: 43rpx;
				font-size: 26rpx;
				font-weight: 600;
				color: #00828C;
				margin-bottom: 23rpx;
			}

			.personal {
				width: 379rpx;
				font-size: 21rpx;
				font-weight: 400;
				color: #4C4948;
				margin-left: 42rpx;
				line-height: 32rpx;
			}
		}

		.box {
			width: 220rpx;
			height: 170rpx;
			border-left: 1rpx solid #f2f2f2;
			display: flex;
			margin-left: 80rpx;
			justify-content: center;
			margin-top: 50rpx;
		}

		.vipnums {
			width: 151rpx;
			height: 151rpx;
			background-color: #00828c;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;

			.num {
				font-size: 32rpx;
				font-weight: 600;
				color: #FFFFFF;
				line-height: 50rpx;
			}

			.xian {
				position: relative;
				width: 110rpx;
				height: 1rpx;
				background-color: #5fb1b7;
			}

			.xian:before {
				content: "";
				position: absolute;
				top: -0.5rpx;
				left: 0;
				width: 100%;
				height: 1rpx;
				background-color: #5fb1b7;
				transform: scaleY(0.5);
			}

			.vips {
				font-size: 19rpx;
				font-weight: 400;
				color: #FFFFFF;
				line-height: 40rpx;
			}
		}

		.shoppage {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			width: 612rpx;
			overflow-x: scroll;
			border-top: 1rpx solid #dfdfdf;
			margin-top: 15rpx;

			.shoppagedata {
				margin-top: 15rpx;
				width: 183rpx;
				height: 120rpx;
				text-align: center;
				padding-right: 20rpx;

				.shoppage1 {
					font-size: 18rpx;
					font-weight: 600;
					color: #4c4847;
				}

				.color_s {
					color: #8c8a89;
				}

				.shoppage2 {
					margin-top: 10rpx;
					width: 183rpx;
					height: 54rpx;
					line-height: 54rpx;
					background: linear-gradient(to right, rgba(221, 241, 248, 1), rgba(226, 243, 249, 1));
					font-size: 32rpx;
					font-weight: 600;
					color: #00828C;
				}
			}
		}
	}
</style>